// VedioPlayerServerDlg.h

#pragma once

#include "VedioPlayerDef.h"

class VedioPlayerServerDlg : public CDialogEx
{
    DECLARE_DYNAMIC(VedioPlayerServerDlg)

public:
    enum
    {
        IDD = IDD_DLG_SERVER
    };

public:
    static VedioPlayerServerDlg* GetInstance(CWnd* pParent = NULL);
    static BOOL IsInitialize();

public:
    void SetCloseCallBack(CLOSE_SERVER_DIALOG_CALLBACK callbackCloseDialog);

protected:
    VedioPlayerServerDlg(CWnd* pParent = NULL);
    virtual ~VedioPlayerServerDlg();
    void UnInitialize();

public:
    afx_msg void OnBnClickedBtnServerOpenTCP();
    afx_msg void OnBnClickedBtnServerCloseTCP();
    afx_msg void OnBnClickedBtnServerClose();

public:
    virtual BOOL PreTranslateMessage(MSG* pMsg);

protected:
    virtual void DoDataExchange(CDataExchange* pDX);

    DECLARE_MESSAGE_MAP()

private:
    static VedioPlayerServerDlg* m_pVPServerDlg;
    CLOSE_SERVER_DIALOG_CALLBACK m_callbackCloseDialog;
};
